//
//  GoodsDetailCountDownCell.m
//  YunGou
//
//  Created by macbook on 16/5/24.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "GoodsDetailCountDownCell.h"
#import "CountdownLabel.h"
@interface GoodsDetailCountDownCell ()
@property (weak, nonatomic) IBOutlet CountdownLabel *countDownLabel;

@end

@implementation GoodsDetailCountDownCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(ProductModel *)model{
    _countDownLabel.endTime = model.q_end_time;
}

- (IBAction)calculateClicked:(id)sender {
    if (self.countdownBlock) {
        self.countdownBlock();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
